tags:

views:

51

answers:

1

i have a large php array encoded to JSON, and passing it to a ruby script.

however, it keeps throwing JSON::ParserError.... it is confused by the numerous doublequotes and singlequotes in the array.

i ahve tried

escapeshellarg, escapeshellcmd ..... these are not working.

A: 

solved. escapeshellcmd did the trick....just gotta spell it out carefully.