/*
- * Copyright 2012 Facebook, Inc.
+ * Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
fbstring serialize(dynamic const&, serialization_opts const&);
+ /*
+ * Escape a string so that it is legal to print it in JSON text and
+ * append the result to out.
+ */
+
+ void escapeString(StringPiece input,
+ fbstring& out,
+ const serialization_opts& opts);
}
//////////////////////////////////////////////////////////////////////
* Parse a json blob out of a range and produce a dynamic representing
* it.
*/
+dynamic parseJson(StringPiece, json::serialization_opts const&);
dynamic parseJson(StringPiece);
/*