Small improvement to JsonValue api