title: Model NaN in a Double value in graphql-spqr
body: <p>There is no standard to represent <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html#NaN" rel="nofollow noreferrer">NaN</a> and <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html#POSITIVE_INFINITY" rel="nofollow noreferrer">INFINITY</a> in neither the <a href="https://graphql.github.io/graphql-spec/June2018/#sec-Float-Value" rel="nofollow noreferrer">Graphql</a> and also in <a href="http://json.org/" rel="nofollow noreferrer">JSON</a>.</p>
  <p>In JavaScript, <code>JSON.stringify(0/0)</code> and <code>JSON.stringify(1/0)</code> will just return string <code>null</code>.</p>
  <p>It cause little trouble when I am providing GraphQL endpoint with Java backed. My value could be any valid <code>Double</code> in Java.</p>
  <pre><code>    @GraphQLQuery
      private Double precentage;
  </code></pre>
  <p>I have few workarounds and I could patch it in a setter which I am doing.
  Just wonder if there is a de-facto standards to handle it in a nicer way.</p>