JSON perguntas e respostas de entrevista
Question: How to Generate or Send JSON Data at the Server Side?Answer: • Create JSON Java object• Add name and value pairs using put method • Convert it to String type using toString method and send it to the client with content-type as "text/xml" or "text/plain" myString = new JSONObject().put("JSON", "Hello, World!").toString(); // myString is {"JSON": "Hello, World"} |
Salvar para revisao
Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.
Faca login para salvar favoritos, perguntas dificeis e conjuntos de revisao.
Isto e util? Sim Nao
Mais uteis segundo os usuarios:
- Who is the Father of JSON ?
- What is the file extension of JSON?
- What is JSON?
- Why use JSON over XML?
- Explain JSON with php.