zbage / pbjson

JSON for PowerBuilder classic, a JSON implementation in pure PowerBuilder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

JSON for PowerBuilder classic, a JSON implementation in pure PowerBuilder.

PREREQUIRE

PB10+, the test project was tested using PB11.5 and the bootstrap-pbl.cmd initialisation files is configurated for PB115, to switch to another IDE version, edit this file and change the line containing "set pbver=115" by the appropriate value.

INSTALLATION

  • run bootstrap-pbl.cmd
  • open the workspace json.pbw in pbide

SYNOPSIS

json ln_json
ln_json = create json
string ls_error
ls_error = ln_json.parseURL("http://date.jsontest.com")
if ls_error = "" then
    messagebox("date", ln_json.retrieve("date") )
end if
destroy ln_json

//or

ls_error = ln_json.parse('{                &
   "time": "07:30:18 PM",                     &
   "milliseconds_since_epoch": 1401910218155, &
   "date": "06-04-2014"                       &
}')

//or
ls_error = ln_json.parseFile('c:\fixtures\json\test-date.json')

LICENSE

The MIT License (MIT)

Copyright (c) 2014 Nicolas Georges (xlat@cpan.org)

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.

About

JSON for PowerBuilder classic, a JSON implementation in pure PowerBuilder.

License:MIT License


Languages

Language:Batchfile 100.0%