xapian-bridge C port

endlessm/eos-sdk#2463
Very minor, but this `-1` means that `json_parser_load_from_data()` will do a `strlen()` on `contents` which `g_file_load_contents()` will have already done for you - you could consider using the latter's `length` outparam and passing it in here.