GithubHelp home page GithubHelp logo

4d-plugin-json's Introduction

4d-plugin-json

obsolete-word-black-frame-word-obsolete-word-black-frame-d-rendering-123942590

Platform

carbon cocoa win32 win64

Examples

$j:=JSON New 
JSON CLOSE ($j)
JSON CLOSE ($j)  //now checks for root validity; previously would crash

$j:=JSON New 
JSON Append node ($j;"obj1";"{\"1\":1}")  //now accepts JSON as $3
JSON Append node ($j;"array_2_3";"[{\"2\":2},{\"3\":3}]")
$json:=JSON Export to text ($j;JSON_WITHOUT_WHITE_SPACE)
JSON CLOSE ($j)

$obj1:=JSON Parse text ("{\"1\":1}")
$obj2:=JSON Parse text ("{\"2\":2}")
$obj3:=JSON Parse text ("{\"3\":3}")

$j:=JSON New 
JSON Append node ($j;"obj1";"{\"1\":1}")
$arr:=JSON Append array ($j;"array_2_3")  //shorthand for append node+set type to array
JSON Append array element ($arr;$obj2)  //appends a copy of the node
JSON Append array element ($arr;$obj3)  //appends a copy of the node
$json:=JSON Export to text ($j;JSON_WITHOUT_WHITE_SPACE)
JSON CLOSE ($j)

  //don't forget to close everything you opened, either by _New or _Parse
JSON CLOSE ($obj1)
JSON CLOSE ($obj2)
JSON CLOSE ($obj3)

4d-plugin-json's People

Contributors

david-quadpro avatar miyako avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.