Fixed: JSON_PRETTY_PRINT constant not available in PHP < 5.4.0
(cherry picked from commit df544ab)
(cherry picked from commit aff7ba3)