4 ms·
I think I'd like JSON as a data representation a lot more if schemas for it were more prevalent. I've noticed it's a lot harder to generate valid JSON -- or ra
by nirvdrum 15y ago
I think I'd like JSON as a data representation a lot more if schemas for it were more prevalent. I've noticed it's a lot harder to generate valid JSON -- or rather a lot harder to escape data. With XML, this is fairly trivial. Granted, my use case is considerably different from most.
The other idea from SOAP I'd love to see applied to ReST is a descriptor document for the API. Given how poorly many ReST APIs are documented, I do miss the good 'ol WSDL. Plus, it gave me some measure of security that the API didn't change.
- sciurus 15y agoDoes WADL provide what you liked about WSDL? http://www.w3.org/Submission/wadl/ http://www.w3.org/Submission/wadl/
- nirvdrum 15y agoI haven't heard of this before. But I'll be checking it out. Thanks for the info.
- seanalltogether 15y agoThe strictness in generating valid json is exactly why i like it so much. I've worked with too many SOAP services with nodes and attributes thrown lazily around the document simply because xml is so unstructured. I do agree however that json could use a few more built-in data types to handle more complex use cases.