[Json] Adds util for JSON encoding/decoding.