76 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
528
views
How to I install jsonlib without getting errors in python/vscode? (beginner)
I, as a beginner to python, am trying to install jsonlib, but error messages keep popping up in the terminal. This message shows when trying to install jsonlib:
Collecting jsonlib
Using cached ...
0
votes
0
answers
943
views
Can't install jsonlib with pip
Due to Error 1 (below) I've downloaded an installer via the URL at the last line of the error. "Visual Studio Build Tools 2022 - 17.4.4" window has popped up with many options of things to ...
0
votes
1
answer
560
views
jsonserializer.serialize library failed
public class Product
{
public int Id { get; set; }
public string ProductName { get; set; }
public int Quantity { get; set; }
}
public IActionResult Index()
{
...
0
votes
0
answers
20
views
undefined reference to `Json::Value::<method>' [duplicate]
this is a following question to this question
after re install libjsoncpp-dev and add #include <jsoncpp/json/json.h> i'm getting:
undefined reference to `Json::Value::every_method'
0
votes
2
answers
445
views
Processing a string formatted as a JSONArray
We have some code where we read a JSON file into a string and then use Json-lib to process it as follows:
// ...
JSONObject jsonObj = (JSONObject) JSONSerializer.toJSON(jsonStr);
// ...
We now have a ...
0
votes
0
answers
304
views
While converting JSON String to JSON array, numbers are getting rounded
While I'm converting JSON String to JSON array the decimal part is getting rounded. On below example the value given is 33648.545 and the output is 33648.547. The library used is 'json-lib-2.4-jdk15....
0
votes
1
answer
1k
views
How to Parse complex json in Robot framework
I am loading a JSON directly from a file and I need to validate that json for number of attributes .
I am using below json file having data arrays and I need to traverse through all the arrays and ...
0
votes
1
answer
1k
views
Converting 2 array objects as key - value pair in JSON object using PYTHON [duplicate]
I have 2 different arrays:
dataList = ['a_cout', 'b_count', 'c_count']
dataList1 = [15404, 21381, 3]
I am trying to merge them into a json object as Key-Value pair like :
'{
"a_count" : 15401,
"...
0
votes
2
answers
8k
views
Error in installing jsonlib in python using cmd
I was trying to install the jsonlib in python using pip install, but the error keeps coming
I've tried installing the Visual Studio C++ redis. 2015-2019.
It did nothing.
Using cached https://files....
0
votes
1
answer
4k
views
JsonParser in C with json-c Library | json_object_object_get(...) not declared
I am new here and try to implement a Json Parser.
I find a Tutorial (https://linuxprograms.wordpress.com/2010/05/20/json-c-libjson-tutorial/) for a Json Parser Programm.
So i have a Json-File Input ...
3
votes
1
answer
9k
views
How to copy all the values from one JSONObject to another?
I understand that it's perfectly possible to copy each individual component over one by one, but it's extremely messy to do and rather ugly. Isn't there a simpler way to copy all the values from one ...
0
votes
1
answer
98
views
Avoid e-notation using net.sf.json-lib
I'm using com.hynnet.json-lib to convert XML to JSON.
PB here is that for long integers this library use exponents instead of full-number.
Could I avoid it using this library or should I use another ...
4
votes
0
answers
726
views
Apache Camel: XMLJSON conversion for empty tags to strings instead of arrays
When using the Camel XMLJSON library and when converting an XML message to JSON using the unmarshal option. The application is converting the empty tags to empty JSON arrays. Is there a way to ...
0
votes
0
answers
77
views
java string to json conversion using json lib
Issue here that while converting to json object decimal value get truncated. I'm using Json-lib for below code.
String str = "{'key':'key','type':'string','value':9276658.1}";
JSONObject fromObject = ...
-1
votes
2
answers
866
views
Grails Run-app exception "ClassNotFoundException: net.sf.json.JSONObject"
I am getting the above exception when i do run-app on my grails application
[java.lang.ClassNotFoundException: net.sf.json.JSONObject
, at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader....