Re: json

new topic     » goto parent     » topic index » view thread      » older message » newer message
CoJaBo2 said...

The only way this can work reliably at all is with explicit typing, e.g., using the method above.

So doing this?

IN: {"key1" : {"array" : [1,2,3]}, "boolean" : false} 
OUT: {JSON_RECORD, { 
		{JSON_STRING, "key1"}, 
		{JSON_RECORD,  
			{ 
				{JSON_STRING, "array"},  
				{JSON_ARRAY, { 
					{JSON_NUMBER, 1}, 
					{JSON_NUMBER, 1}, 
					{JSON_NUMBER, 1} 
					} 
				} 
			} 
		}, 
		{JSON_STRING, "boolean"},  
		{JSON_BOOLEAN, 0} 
	} 
} 

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu