Json path get in java changing value- not returning actual value
See original GitHub issueHi, Am using the JSON path rest assured. when I do get it changing the actual value for the scientific number. output should be 5.41422482E8 this but it returns 5.4142246E
String asbsad="{ \"Product\": \"LAMOTRIGINE\", \"nrx_quantity\": 5.41422482E8, \"nrx_quantity_pct\": 100 }"; JsonPath js= new JsonPath(asbsad); System.out.println(js.get().toString()); //Output : {Product=LAMOTRIGINE, nrx_quantity=5.4142246E8, nrx_quantity_pct=100}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Json path get in java changing value not returning actual value
Hi, Am using the JSON path rest assured. when I do get it changing the actual value for the scientific number.
Read more >java - JsonPath return result different for the json object from ...
I am using JsonPath-2.4.0.jar and while trying to extract object type value from json getting different result.
Read more >Introduction to JsonPath - Baeldung
This tutorial will give an introduction to Jayway JsonPath, a Java implementation of the JSONPath specification. It describes setup, syntax, ...
Read more >Writing JSONPath Expressions - Hevo Data
The expression must return a boolean value. The result is a list of all the elements in an object or array that match...
Read more >12.18.3 Functions That Search JSON Values
Returns data from a JSON document, selected from the parts of the document matched by the path arguments. Returns NULL if any argument...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your time import io.restassured.path.json.JsonPath; I am using this library for my test cases from rest assured
this was another library I was using the wrong issue raised
this was another library I was using the wrong issue raised