I was looking for JSON schema standards and their corresponding php implementations. Expecting some open source out there and I was surprised, to find only one php implementation. I was about using this technology (JSON) and the schema lib to parse my incoming browser requests.
This natural parse/validate activity seems natural in XML and make me wonder why this is not the case in JSON.
I end up with a doubt situation. Should I pursue my JSON structure data exchange or switch to XML?我第一次 Select JSON是因为它比XML简单,语法也不那么冗长,但如果我必须重新开发世界上所有现有的标准,这些论点就会变得更轻松.我还 Select 了JSON,希望限制我的web服务器和移动应用程序之间的通信规模.通过使用comet应用程序,XMPP似乎被谷歌、Facebook等大牌公司实现并用于实时聊天文本或基于视频的消息.
So the actual questions are:
- Is JSON for the poor web server developer that wants to know what happen on its traffic, and focus on over simplicity (do not be mistaken, here, I include myself)?
- IETF为JSON模式起草的草案是否是一项严肃的工作,因为服务器端(PHP)上几乎没有实现?
- Am I missing something, or maybe, the best communication pattern is to send data in xml to the server and expect a json response (many json schema implementation exist in javascript)?
- Or did I only faced the actual proof, that this concern has not been well served by the developer community because web developer using JSON do not test deeply their incoming request data?
请帮我理解一下,我在这里错过了一些经验吗?