if json_encode fails - failback to php version