juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2010-02-16 06:33 pm

formulas as json

Tell me friends, is there a reasonable way to represent formulas (like logical conditions, for instance) in json format? Kind of... not obvious to me.

[identity profile] ygam.livejournal.com 2010-02-17 03:31 am (UTC)(link)
{op:ge arg1:{op:plus arg1:1 arg2:{op:minus arg1:2 arg2:3}} arg2:0}

[identity profile] cema.livejournal.com 2010-02-17 03:46 am (UTC)(link)
S-expression can be represented with curlies but is it still json?

[identity profile] ivan-gandhi.livejournal.com 2010-02-17 06:09 am (UTC)(link)
Beautiful! Thanks!