standardize on json.

Produce only JSON compatible AST. Added json-equiv(..) comparision function. Should be true
when two objects will serlise to similar JSON structs. Not overally pedantic.