I took out a value of a node in a JSON string

JSON are as follows: 

hdcontrol({"stime":1383624188,"status":{"allow":true,"miphone":{"hdurl":"?_a=20131105_phone&_op=choose&_s=52dabca441","duration":null,"hdstop":false,"reg":true,"pmstart":false,"hdstart":true},"mibox":{"hdurl":"?_a=20131105_box&_op=choose&_s=52dabca441","duration":null,"hdstop":false,"reg":true,"pmstart":false,"hdstart":true},"mitv":{"hdurl":"?_a=20131105_tv&_op=choose&_s=52dabca441","duration":null,"hdstop":false,"reg":false,"pmstart":false,"hdstart":true}}})



//The above contents are as follows: 
hdcontrol
(
	{
		"stime":1383624188,
		"status":
		{
			"allow":true,
			"miphone":
			{
				"hdurl":"?_a=20131105_phone&_op=choose&_s=52dabca441",
				"duration":null,
				"hdstop":false,
				"reg":true,
				"pmstart":false,
				"hdstart":true
			},
			"mibox":
			{
				"hdurl":"?_a=20131105_box&_op=choose&_s=52dabca441",
				"duration":null,
				"hdstop":false,
				"reg":true,
				"pmstart":false,
				"hdstart":true
			},
			"mitv":
			{
				"hdurl":"?_a=20131105_tv&_op=choose&_s=52dabca441",
				"duration":null,
				"hdstop":false,
				"reg":false,
				"pmstart":false,
				"hdstart":true
			}
		}
	}
)



/* Now I want to take out the value of: 
?_a=20131105_phone&_op=choose&_s=52dabca441, 
Namely: node in the miphone hdurl value, 
Then the regular should be how to write it? 
*/


Started by Austin at November 13, 2016 - 4:40 AM

In the JSON () is a what is the class is the set {} [] () do not know what is

Posted by Mike at November 22, 2016 - 5:09 AM

Are you writing a rob millet plug-in do I also in research.

Posted by Cora at December 05, 2016 - 5:29 AM

In the C# environment, don't think too much, take the following as a string processing, forget it is JSON, as long as it can get out of it.
Unfortunately, I am not familiar with regular... Should understand regular soon can write the corresponding code.
hdcontrol({"stime":1383624188,"status":{"allow":true,"miphone":{"hdurl":"?_a=20131105_phone&_op=choose&_s=52dabca441","duration":null,"hdstop":false,"reg":true,"pmstart":false,"hdstart":true},"mibox":{"hdurl":"?_a=20131105_box&_op=choose&_s=52dabca441","duration":null,"hdstop":false,"reg":true,"pmstart":false,"hdstart":true},"mitv":{"hdurl":"?_a=20131105_tv&_op=choose&_s=52dabca441","duration":null,"hdstop":false,"reg":false,"pmstart":false,"hdstart":true}}})
 

Posted by Monica at December 10, 2016 - 5:47 AM

Direct as string, processing is not good for regular?

If it is for the JSON processing, or to change continually, serialization etc.

Posted by Austin at December 17, 2016 - 6:06 AM

Also, there is such a method,

Posted by Austin at December 20, 2016 - 6:24 AM

Free exchange~

Posted by Monica at December 29, 2016 - 6:59 AM