Made the Json type abide by some builtin protocols for ease of use
Json parser functions added