libjson-user Mailing List for libjson
Brought to you by:
ninja9578
You can subscribe to this list here.
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|
From: Alap S. <al...@ya...> - 2015-12-04 14:04:23
|
Hi All,
I am using json_strip_white_space() to strip of white spaces from a JSON payload generated from a different source. The JSON paylaod is valid. What I observed is that the processed output removes any content after "/".
PAYLOAD:
[
{
"KEY1" : "VALUE1",
"KEY2" : "VALUE2",
"KEY3" : "\"STR: STRING1\"\n",
"KEY4" : "\"STR:/// STRING2\"\n",
"KEY5" : 123
}
]
The output of the json_strip_white_space(): Please note that "STRING2" has been removed.
[{"KEY1":"VALUE1","KEY2":"VALUE2","KEY3":"\"STR:STRING1\"\n","KEY4":"\"STR:"KEY5":123}]
Appreciate input on this issue.
Regards,Alap
|
|
From: Richard C. <ric...@gm...> - 2013-07-30 21:31:31
|
This doesn't seem to build on Darwin. What do you think I'm doing wrong?
pc5:libjson rhett$ sudo make install
============================================================
libjson version: 7.6.1 target: OS: Darwin
============================================================
Install header files
mkdir -p /usr/include/libjson
cp -f ./*.h /usr/include/libjson
mkdir -p /usr/include/libjson/_internal/Source
cp -f ./_internal/Source/*.h /usr/include/libjson/_internal/Source
cp -r ./_internal/Source/JSONDefs /usr/include/libjson/_internal/Source
chmod -R a+r /usr/include/libjson
find /usr/include/libjson -type d -exec chmod a+x {} \;
cp -rv _internal/Source/Dependencies/ /usr/include/libjson/_internal/Source
cp: _internal/Source/Dependencies/: No such file or directory
make: *** [install_headers] Error 1
|
|
From: terje l. <ter...@ho...> - 2012-06-11 21:20:59
|
Posted this to the forum, but dosent look like theres any action there so trying here instead :)
Relevant json:
"Frustrum" : [
0,
0.785,
1.333333333333333,
0.1,
100.0
]
Relevant code:
const JSONNode& frustrumArray = jsonNode["Frustrum"];
std::string test = frustrumArray.write();
if (frustrumArray.at(0).as_int() == FrustrumType::FromFov)
{
cam->SetFrustrum(static_cast<Real>(frustrumArray.at(1).as_float()),
static_cast<Real>(frustrumArray.at(2).as_float()),
static_cast<Real>(frustrumArray.at(3).as_float()),
static_cast<Real>(frustrumArray.at(4).as_float()));
}
I'm getting a string iterator is not dereferenceable assertion error here.. its in line 144 in JSONWorker.cpp.. the test string is set to "[0,0.785,1.333333333333333,0.1,100.0]" .. what am I doing wrong?
|
|
From: Duncan T. L. <du...@wa...> - 2010-11-26 19:56:58
|
Hi Johnathan
Thanks for your work on libjson.
I don't see a license file in the libjson release.
As a result, it makes it difficult to chose to use
libjson. I want to interface to it from R, an open
source (GPL2) programming language.
Can you let me know under what license or conditions consumers
can use libjson.
Thanks,
Duncan
|