GithubHelp home page GithubHelp logo

Comments (2)

travisbrown avatar travisbrown commented on July 22, 2024

Thanks, @chandu0101, but I'm a little hesitant to add this to core, for a few reasons:

  1. The result isn't valid JSON. In some cases circe can be configured to be more conservative than the JSON spec (e.g. it can maintain insertion order), but not less.
  2. If we did decide to support this syntax on the printing side, I'd prefer to support parsing it, and that's likely to be a lot more complicated.
  3. I know practically nothing about GraphQL, but at a glance it looks like it adds other syntax to JSON that isn't covered by this change (so you still can't use circe to produce arbitrary GraphQL).

Does this sound accurate? If there's demand for this, and if we can add parsing support (not necessarily using Jawn), I'd definitely consider including it in a new module.

from circe.

chandu0101 avatar chandu0101 commented on July 22, 2024

first of all thanks for prompt and detailed response

The result isn't valid JSON

End of the story, i thought its a valid JSON :(

I know practically nothing about GraphQL, but at a glance it looks like it adds other syntax to JSON that isn't covered by this change

Yeah GraphQL is JSON like query lang but its API'S(js clients) accepts valid js.Object's, looks like i am calling API in wrong way even though it works!. I think i actually need Json to scala.js js.Object/js.Dynamic which we can cover in #93 !

from circe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.