Improve support for JSON podspecs

Fixes https://github.com/CocoaPods/CocoaPods/issues/2157
[Integration] Update for JSON conversion