akheron / jansson

C library for encoding, decoding and manipulating JSON data
http://www.digip.org/jansson/
Other
3.05k stars 809 forks source link

Problem with Forecast weather data of OpenWeatherMap #550

Closed ThomasLemmRgstf closed 3 years ago

ThomasLemmRgstf commented 4 years ago

The answer from OpenWeatherMap seems to be correct. Here is the answer for forecast weather data:

WeatherSampleCurrFore.txt

If i call the json_loads() function with the responese json string, i get an error. error.line = -1 error.column = -1 error.position = 0 error.soutce = "" error.text = "" But the json_loads() return = 0x0.

I use the version 2.13.1.

With the current weather data the call works as expected.

WeatherSampleCurr.txt

I would be happy if the problem was solved.

ThomasLemmRgstf commented 3 years ago

The problem could be found. The set heap was too small. In the environment where I use the library it is necessary to set the heap. (B&R Automation Runtime)