layeh / gopher-json Goto Github PK
View Code? Open in Web Editor NEWa simple JSON encoder/decoder for gopher-lua
Home Page: https://godoc.org/layeh.com/gopher-json
License: The Unlicense
a simple JSON encoder/decoder for gopher-lua
Home Page: https://godoc.org/layeh.com/gopher-json
License: The Unlicense
Would it be possible, and within the scope of this library, to add a function that imported numeric keys in a table to an array instead of an object with the label of the number?
In de .go files in gopher-json there is a comment after package .
This causes the following error:
workflow/queue.go:13:2: code in directory /Volumes/external_disk/Ziggo/Git/Go/src/github.com/layeh/gopher-json expects import "layeh.com/gopher-json"
I changed this:
package json // import "layeh.com/gopher-json"
to this:
package json
for all the go files in layeh.com/gopher-json and now my code compiles fine.
The go version I use is:
go version go1.7.4 darwin/amd64
If you require any more information please let me know.
Paul.
The library does not seem to support propagating original type when decoding/encoding empty maps and arrays.
As a result:
In order to illustrate the issue, I have created a test-case (see associated PR #7)
local body={
name="jack",
age =10,
address={}
}
i need like this:
{"Name":"jack","Age":10,"Address":[]}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.