{
"ip" : "127.0.0.1",
"port" : 666
}
A more Lua-inspired syntax is friendlier:
ip = "127.0.0.1"
port = 666
This syntax corresponds 1-1 with regular JSON syntax and can be trivially converted back and forth with the following rules:
- Assume an object definition at the root level (no need to surround entire file with { } ).
- Commas are optional
- Quotes around object keys are optional if the keys are valid identifiers
- Replace : with =
On the other hand, all syntax wars are pointless and will only send us into an early grave.
So did you end up with custom JSON C++ parser?
ReplyDeleteYes, we are using a custom parser for our special format.
ReplyDeleteWould you mind sharing the code of your parser?
ReplyDeleteI'm very interested on it!
He has uploaded his utility code (including parser) to github:
ReplyDeletehttps://github.com/niklasfrykholm/nflibs
There is a one issue reported with the grow operation, but you can fix it yourself.
I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy دمج pdf
ReplyDeleteA good website is useful.
ReplyDeletepoker-top-list.com
lakesidecarrental.com
Welcome to My Blog
ReplyDeletetheicechannel.com/
hyoseki.com/
ReplyDeleteHiring an AI Developer Can Boost Your Company's Productivity! I want to please you, because by going to this site you get access to hiring such people! With just a couple of clicks, you can go to this site and access this information! You can also leave your vacancy to contact such people! kosten app programmieren lassen
tow vehicles and a crew of notably professional experts roadside battery service and prevent any further trouble.
ReplyDeleteThe Affiliate platform allows direct conversation between have got entry to a various range of products and services.
ReplyDelete