Allow the use of field numbers rather than names in JSON serialization

@swankjesse