31 May 2023 03:00 PM
parse a JSON string that contains an array on the top level?data record(value = "{\"hello\" : \"world\"}")
| parse value, "JSON:json"
But I fail to parse a top-level JSON array:
data record(value = "[{\"hello\" : \"world\"}]")
| parse value, "JSON:json"
Solved! Go to Solution.
			
    
	
		
		
		01 Jun 2023
	
		
		07:42 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		01 Jun 2023
	
		
		12:08 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 stefan_eggersto
		
			stefan_eggersto
		
		
		
		
		
		
		
		
	
			
		
Hi Stefan, you have to use JSON_ARRAY for that:
data record(value = "[{\"hello\" : \"world\"}]")
| parse value, "JSON_ARRAY:greeting"
| fields greeting
