Inlined the content of JsonWriter.cpp
Renamed writeInteger to writeLong to be more consistent