Hi -

>I see that x is a primitive. Can you read JSON into an object or was that
>blocked by existential questions?

Yes, you can read a record or a class with JSON. If the record or
class has a custom readThis/writeThis/readWriteThis it might need
to specifically handle the case of JSON, though.



>  Good place to have existential questions: In Chapel...
>
>
>
>Is that sample application somewhere I can learn from it?

https://github.com/chapel-lang/chapel/tree/master/test/studies/labelprop

I was pretty happy with the JSON-based I/O that this application
uses.

-michael

>
>
>Thanks,
>b
>
>~~~~~
>May All Your Sequences Converge
>
>
>
>On Aug 1, 2017, at 10:14 AM, Michael Ferguson <[email protected]> wrote:
>
>Hi -
>
>I'm not sure I can make a complete list but I would like to point
>out that JSON is supported with Chapel's formatted I/O system.
>Try e.g. writef("%jt", myVariable);
>
>Reading works OK but there are some philosophical questions that
>are currently unresolved to do with - in what circumstances can
>reading a Chapel array resize it?
>
>I believe the built-in list type works around those issues though
>and I've used the formatted-I/O JSON support in an application
>that was reading tweets.
>
>Cheers,
>
>-michael
>
>
>
>
>Can someone share a list of currently supported serialization formats,
>like HDF5 (I know not current), Parquet, etc.
>
>Second, we data storage is supported.  I see CSV and HDFS, but no SQL or
>others.
>
>Thanks!
>b
>
>~~~~~
>May All Your Sequences Converge
>
>
>--------------------------------------------------------------------------
>----
>Check out the vibrant tech community on one of the world's most
>engaging tech sites, Slashdot.org <http://Slashdot.org>!
>http://sdm.link/slashdot <http://sdm.link/slashdot>
>_______________________________________________
>Chapel-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/chapel-users
>
>
>
>
>
>
>
>
>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users

Reply via email to