Recursively translate from/to JsonArray/JsonObject and PHP ArrayValues.