# SoftBank Robotics documentation What's new in NAOqi 2.8?

# JSON Codec

## Summary

Global Namespaces

- namespace qi

  Functions (namespace qi)

  qi::encodeJSON

## Reference

std::string `qi::``encodeJSON`(const qi::AutoAnyReference& val, JsonOption jsonPrintOption = JsonOption_None)

  Brief:

  Parameters: | val – Value to encode jsonPrintOption – Option to change JSON output
  Returns: | the value encoded in JSON.

`qi::decodeJSON`

Glossary Site map Index Support Contact Legal Notices