toeb / cmakepp

An Enhancement Suite for the CMake Build System
Other
433 stars 37 forks source link

when reading json empty strings cause the parser to stop at parent object #48

Closed toeb closed 9 years ago

toeb commented 9 years ago

file: input.json:

{
  "name": "library",
  "version": "1.0.0",  
  "platforms": {
          "windows-x86_64": {
              "env":"intel12.1", "binpath": "", "libpath": "win64/intel12.1" 
          },
          "linux-x86_64": {
              "env":"gnu4.8", "binpath": "", "libpath": ""
          }
    }

}

json_read("input.json") ans(res) json_print(${res})

results in

{
 "name":"library",
 "version":"1.0.0",
 "platforms":{
  "windows-x86_64":{
   "env":"intel12.1"
  }
 }
}