JSONExport icon indicating copy to clipboard operation
JSONExport copied to clipboard

field like `company_id` always export to companyId on iOS

Open jiangtao opened this issue 7 years ago • 6 comments

I think the same problem will accour on Android. I think sometimes the model fields like 'aaa_bbb_ccc' are used in db model. If the field export camel field like aaaBbbCcc, it's so serious.

jiangtao avatar Aug 30 '16 07:08 jiangtao

this change happens only for the fieldName not the json key, right? in such case, this is not a bug. It meant to be like that, because in Objective-C, Swift, and Java the convention is to use camel case instead of underscores.

Ahmed-Ali avatar Aug 30 '16 08:08 Ahmed-Ali

Yes, that's ok. But I think not every app design the field name with underscores. So can you give more choice for users?

jiangtao avatar Aug 30 '16 09:08 jiangtao

I agree there should be an option for that. Will consider it as soon as possible!

Ahmed-Ali avatar Aug 30 '16 12:08 Ahmed-Ali

Thanks too much

jiangtao avatar Aug 30 '16 12:08 jiangtao

me need too, many thanks for supports.

mhtranbn avatar Mar 05 '17 13:03 mhtranbn

remove func underscoresToCamelCaseForString

hjqiaho avatar Feb 08 '20 09:02 hjqiaho