added the new json methods
added the function of the json buttons
used the jsonobject to produce and consume json objects