You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if we had a way to support JSON data, If you decode a json with JSX you get a data structure like this [{<<"test">>, 12345}], the problem is that if you try to pass that to prolog it thinks that the first element of the tuple is callable. When I ran this test https://gist.github.com/zkessin/52c96f8d5e6285497e8f I get this error:
It would now be better to use maps to represent JSON data. This would make it easier to use and make it easier to handle the case where you have lists of objects as data. There is jsxn which is an extension to jsx which does this.
It would be nice if we had a way to support JSON data, If you decode a json with JSX you get a data structure like this
[{<<"test">>, 12345}]
, the problem is that if you try to pass that to prolog it thinks that the first element of the tuple is callable. When I ran this test https://gist.github.com/zkessin/52c96f8d5e6285497e8f I get this error:The text was updated successfully, but these errors were encountered: