cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing CURL output [which is in JSON of course]

Mark L.45
Collaborator | Level 8

Use a JSON parser, I found the answer! stupid me.

1 Reply 1

Re: Parsing CURL output [which is in JSON of course]

Mark L.45
Collaborator | Level 8

Here is a more complete answer, in perl of course since I am a pathological extended rubbish lister fan.

#!/usr/bin/perl

# from file content

use JSON;

use Data::Dumper;

open( my $fh, '<', 'json.data' );

$json_text   = <$fh>;

$perl_scalar = decode_json( $json_text );

print Dumper $perl_scalar;

 

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?