Add jd_from_json_buffer.

Use it to avoid extra copy in jd_from_jsons.