question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Json path get in java changing value- not returning actual value

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
suraj72commented, Jun 1, 2021

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

0reactions
suraj72commented, Jun 1, 2021

this was another library I was using the wrong issue raised

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found