comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » JSON file manipulation in idl
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
JSON file manipulation in idl [message #92976] Mon, 04 April 2016 10:30 Go to next message
rojofija is currently offline  rojofija
Messages: 9
Registered: January 2015
Junior Member
Dear friends,

Does anyone know a practical way to read, manipulate, and extract elements from a file in JSON format using IDL?.

I would like to manipulate the elements similarly as it is done with conventional arrays.

Any feedback is very welcome.

All the best,
Roberto.
Re: JSON file manipulation in idl [message #92977 is a reply to message #92976] Mon, 04 April 2016 10:41 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 4/4/16 11:30 AM, rojofija wrote:
> Does anyone know a practical way to read, manipulate, and extract
> elements from a file in JSON format using IDL?.
>
> I would like to manipulate the elements similarly as it is done with
> conventional arrays.

JSON_PARSE was added in IDL 8.2. The only issue for you is to read your
file into a string, then pass that to JSON_PARSE. Checkout the TOARRAY
to get standard IDL arrays.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: More histogram magic help please!
Next Topic: Slow object graphics when plotting multiple lines

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:17:14 PDT 2025

Total time taken to generate the page: 0.00448 seconds