[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Annotation Type JsonString (2.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0 (latest)](/java/docs/reference/google-http-client/latest/com.google.api.client.json.JsonString)\n- [1.47.1](/java/docs/reference/google-http-client/1.47.1/com.google.api.client.json.JsonString)\n- [1.46.3](/java/docs/reference/google-http-client/1.46.3/com.google.api.client.json.JsonString)\n- [1.45.3](/java/docs/reference/google-http-client/1.45.3/com.google.api.client.json.JsonString)\n- [1.44.2](/java/docs/reference/google-http-client/1.44.2/com.google.api.client.json.JsonString)\n- [1.43.2](/java/docs/reference/google-http-client/1.43.2/com.google.api.client.json.JsonString)\n- [1.42.3](/java/docs/reference/google-http-client/1.42.3/com.google.api.client.json.JsonString)\n- [1.41.8](/java/docs/reference/google-http-client/1.41.8/com.google.api.client.json.JsonString) \n\n public interface JsonString implements Annotation\n\nUse this annotation to specify that a declared numeric Java field should map to a JSON string.\n\nBy default declared Java numeric fields are stored as JSON numbers. For example: \n\n \n class A {\n @Key BigInteger value;\n }\n \n \ncan be used for this JSON content: \n\n \n {\"value\" : 12345768901234576890123457689012345768901234576890}\n \n \nHowever, if instead the JSON content uses a JSON String to store the value, one needs to use\nthe [JsonString](/java/docs/reference/google-http-client/latest/com.google.api.client.json.JsonString) annotation. For example: \n\n \n class B {\n @Key @JsonString BigInteger value;\n }\n \n \ncan be used for this JSON content: \n\n \n {\"value\" : \"12345768901234576890123457689012345768901234576890\"}\n \n \nImplements\n----------\n\n[Annotation](https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html)"]]