Yliu json trivial enhancement

- fix wrong return type of cJSON_type_to_string
- give more hint about json schema mismatch error

Thanks.