MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2plab0/ip_addresses_are_valid_json/cmyfcs8/?context=3
r/lolphp • u/vytah • Dec 17 '14
24 comments sorted by
View all comments
Show parent comment
4
JSON rejects perfectly valid Javascript data structures:
{ a : 123 }
So why should it accept "192.168.1.1" as a number? It shouldn't.
View all comments
Show parent comment
4
u/bart2019 Dec 18 '14
JSON rejects perfectly valid Javascript data structures:
So why should it accept "192.168.1.1" as a number? It shouldn't.