Added type check functions in JSONValue