Akeeba_Services_JSON::encode

encodes an arbitrary variable into JSON format