jsonicjs / jsonic

JSON parser that isn't strict
MIT License
199 stars 23 forks source link

Strings cannot contain / #12

Closed georgigriffiths closed 8 years ago

georgigriffiths commented 8 years ago

ie you cannot use {"path":"a/b"}

georgigriffiths commented 8 years ago

Well it's not that.

SENECA_OPTIONS="{"socket-server":{redis:{host:127.0.0.1,port:6379}},"memcached-cache":{servers:[127.0.0.1:11211]},ffmpeg:{path:bin}}" node server/start.js

/Users/georgi/Sites/omnispectivity/node_modules/jsonic/jsonic.js:2074 throw peg$buildException(null, peg$maxFailExpected, peg$maxFailPos); ^

SyntaxError: Expected ":" but "-" found.

georgigriffiths commented 8 years ago

Got it SENECA_OPTIONS="{\"socket-server\":{redis:{host:127.0.0.1,port:6379}},\"memcached-cache\":{servers:[127.0.0.1:11211]},ffmpeg:{path:bin}}".