How I can convert any object (eg array) in json and get in the format string? In android -


how can convert object (eg array) in json , in format string? example:

public string jsonencode(object obj) { return jsonstring; } 

you can use gson library convert serializable objects json string.

here tutorial how-do-convert-java-object-to-from-json-format-gson-api/


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -