4 ms·
I did write a json encoder/decoder! I was just goofing around and decided to see how hard it was. Apparently I didn't get around to flushing out the docs, so
by PopeDotNinja 7y ago
I did write a json encoder/decoder! I was just goofing around and decided to see how hard it was. Apparently I didn't get around to flushing out the docs, so here's the tests:
https://github.com/amorphid/json_momoa/blob/master/test/json_momoa/parser_test.exs https://github.com/amorphid/json_momoa/blob/master/test/json...
- camgunz 7y agoIncredible name..... Edit: to be a little more constructive, I read this a while ago and it scared me off implementing anything JSON related forever: http://seriot.ch/parsing_json.php#4 http://seriot.ch/parsing_json.php#4.
- PopeDotNinja 7y agoI found it much more pleasant to parse JSON than YAML. At least there's a fairly soecific RFC for JSON! YAML parsing felt like a whole bunch of "meh, we came up with this, but just sorta do what you want". And on the topic of cute names, back when I was learning Elixir, I wrote a wrapper for an Erlang YAML parser. I called it Mark Yamill :) https://hex.pm/packages/mark_yamill https://hex.pm/packages/mark_yamill