Skip to content

chemicallang/cJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cJSON for Chemical

cJSON bindings for Chemical.

Usage

import "chemicallang/cJSON"

Example

func main() : int {
    var root = cJSON::ffi::cJSON_CreateObject()
    cJSON::ffi::cJSON_AddItemToObject(root, "name", cJSON::ffi::cJSON_CreateString("Chemical"))
    
    var out = cJSON::ffi::cJSON_Print(root)
    std::print(out)
    
    cJSON::ffi::cJSON_Delete(root)
    cJSON::ffi::cJSON_free(out as *void)
    return 0
}

About

cJSON bindings for The Chemical Programming Language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors