add json_to_record macro
update
fix json_to_record in mochijson2