cJSON

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules >

cJSON

 

Description

 

cJSON is a module that implements an Ultralightweight JSON parser.

For information about JSON: http://www.json.org/

 

cJSON is based on cJSON library. Sources can be found at: https://github.com/DaveGamble/cJSON

 

How to use this module

 

Inside your script, before calling any module specific keyword, add the following:

 

USES "cJSON"

 

The module provides both low level interface, faithful to the CJSON original, and high level interface in form of a CCJson class, which is more simple to use.

 

References

 

1.JavaScript Object Notation (JSON) Data Interchange Format RFC 8259

 

Additional information

 

 

Important notes about cJSON module

 

1. cJSON thinBasic module is based on cJSON library Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
 
Library can be found at the following link: https://github.com/DaveGamble/cJSON
 
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
 
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

 

2. cJSON thinBasic module needs Redistributable Visual C Runtime for Visual Studio 2015/2017.
 
Check this link for information about Redistributable Visual C Runtime:
https://stackoverflow.com/questions/12206314/detect-if-visual-c-redistributable-for-visual-studio-2012-is-installed