Allow JsonParse to parse primitives at top level

Also, add JsonPrimitiveTypeToString