Is that possible to change Json content dynamically

0 votes

Hi,

 

         Insert JSON Doucment in DB:      

public string json = "{\"name\":\"Nick\",\"age\":30,\"phone\":\"xxx-xxx-xxx\"}";

Instead of assigning the values static. Can we change the value dynamically for updating the values in DB.

asked May 2, 2014 in App42 Cloud API-BaaS by raj (21 points)

1 Answer

0 votes

Yes it is possible, you can change the content dynamically, like this.

public static string name = "Name from text field etc.";

public static int age = "Age from text field etc.";

public static int phone = "Phone from text field etc.";

public static string json = "{\"name\":\""+name+"\",\"age\":"+age+",\"phone\":"+phone+"}"; 

Here name, age and phone values are saved as you provide in text field. 

answered May 2, 2014 by Akshay.Mishra (179 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...