JSON and euphoria

new topic     » topic index » view thread      » older message » newer message

so i was thinking, i haven't seen a JSON encode/decode lib for eu. I'm thinking into it and am having a problem with the design. A JSON object can be an associative arr, and currently there is no standard for the representation of that. ie JSON
{"foo" : "bar"}
problem is that's easy to rep as a sequence ie 'foo','bar'
but what happens when you have a JSON object with an array also
{
'foo' :'bar',
'users' : ['user1', 'user2']
}
{{'foo', 'bar'}, {'users', {'user1', 'user2'} } }
the array will be treated as an associative one.
so the question is, how to rep json code succinctly in a sequence so as to recreate the original.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu