Fixed serialization bug in JsonElement