JsonCpp is now licensed under MIT license, or public domain if desired and recognized in your jurisdiction.

diff --git a/src/jsontestrunner/main.cpp b/src/jsontestrunner/main.cpp
index 3e6cd5d..be3f44c 100644
--- a/src/jsontestrunner/main.cpp
+++ b/src/jsontestrunner/main.cpp
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 #include <json/json.h>
 #include <algorithm> // sort
 #include <stdio.h>
diff --git a/src/lib_json/json_batchallocator.h b/src/lib_json/json_batchallocator.h
index 87ea5ed..173e2ed 100644
--- a/src/lib_json/json_batchallocator.h
+++ b/src/lib_json/json_batchallocator.h
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 #ifndef JSONCPP_BATCHALLOCATOR_H_INCLUDED
 # define JSONCPP_BATCHALLOCATOR_H_INCLUDED
 
diff --git a/src/lib_json/json_internalarray.inl b/src/lib_json/json_internalarray.inl
index 9b985d2..66d838e 100644
--- a/src/lib_json/json_internalarray.inl
+++ b/src/lib_json/json_internalarray.inl
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 // included by json_value.cpp
 // everything is within Json namespace
 
diff --git a/src/lib_json/json_internalmap.inl b/src/lib_json/json_internalmap.inl
index bade5d5..d0dd62a 100644
--- a/src/lib_json/json_internalmap.inl
+++ b/src/lib_json/json_internalmap.inl
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 // included by json_value.cpp
 // everything is within Json namespace
 
diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp
index 2bd38f0..d2c255c 100644
--- a/src/lib_json/json_reader.cpp
+++ b/src/lib_json/json_reader.cpp
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 #include <json/reader.h>
 #include <json/value.h>
 #include "json_tool.h"
diff --git a/src/lib_json/json_tool.h b/src/lib_json/json_tool.h
index 5ffc2de..c20639d 100644
--- a/src/lib_json/json_tool.h
+++ b/src/lib_json/json_tool.h
@@ -1,88 +1,93 @@
-#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED

-# define LIB_JSONCPP_JSON_TOOL_H_INCLUDED

-

-/* This header provides common string manipulation support, such as UTF-8,

- * portable conversion from/to string...

- *

- * It is an internal header that must not be exposed.

- */

-

-namespace Json {

-

-/// Converts a unicode code-point to UTF-8.

-static inline std::string 

-codePointToUTF8(unsigned int cp)

-{

-   std::string result;

-   

-   // based on description from http://en.wikipedia.org/wiki/UTF-8

-

-   if (cp <= 0x7f) 

-   {

-      result.resize(1);

-      result[0] = static_cast<char>(cp);

-   } 

-   else if (cp <= 0x7FF) 

-   {

-      result.resize(2);

-      result[1] = static_cast<char>(0x80 | (0x3f & cp));

-      result[0] = static_cast<char>(0xC0 | (0x1f & (cp >> 6)));

-   } 

-   else if (cp <= 0xFFFF) 

-   {

-      result.resize(3);

-      result[2] = static_cast<char>(0x80 | (0x3f & cp));

-      result[1] = 0x80 | static_cast<char>((0x3f & (cp >> 6)));

-      result[0] = 0xE0 | static_cast<char>((0xf & (cp >> 12)));

-   }

-   else if (cp <= 0x10FFFF) 

-   {

-      result.resize(4);

-      result[3] = static_cast<char>(0x80 | (0x3f & cp));

-      result[2] = static_cast<char>(0x80 | (0x3f & (cp >> 6)));

-      result[1] = static_cast<char>(0x80 | (0x3f & (cp >> 12)));

-      result[0] = static_cast<char>(0xF0 | (0x7 & (cp >> 18)));

-   }

-

-   return result;

-}

-

-

-/// Returns true if ch is a control character (in range [0,32[).

-static inline bool 

-isControlCharacter(char ch)

-{

-   return ch > 0 && ch <= 0x1F;

-}

-

-

-enum { 

-   /// Constant that specify the size of the buffer that must be passed to uintToString.

-   uintToStringBufferSize = 3*sizeof(UInt)+1 

-};

-

-// Defines a char buffer for use with uintToString().

-typedef char UIntToStringBuffer[uintToStringBufferSize];

-

-

-/** Converts an unsigned integer to string.

- * @param value Unsigned interger to convert to string

- * @param current Input/Output string buffer. 

- *        Must have at least uintToStringBufferSize chars free.

- */

-static inline void 

-uintToString( UInt value, 

-              char *&current )

-{

-   *--current = 0;

-   do

-   {

-      *--current = char(value % 10) + '0';

-      value /= 10;

-   }

-   while ( value != 0 );

-}

-

-} // namespace Json {

-

-#endif // LIB_JSONCPP_JSON_TOOL_H_INCLUDED

+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
+#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED
+# define LIB_JSONCPP_JSON_TOOL_H_INCLUDED
+
+/* This header provides common string manipulation support, such as UTF-8,
+ * portable conversion from/to string...
+ *
+ * It is an internal header that must not be exposed.
+ */
+
+namespace Json {
+
+/// Converts a unicode code-point to UTF-8.
+static inline std::string 
+codePointToUTF8(unsigned int cp)
+{
+   std::string result;
+   
+   // based on description from http://en.wikipedia.org/wiki/UTF-8
+
+   if (cp <= 0x7f) 
+   {
+      result.resize(1);
+      result[0] = static_cast<char>(cp);
+   } 
+   else if (cp <= 0x7FF) 
+   {
+      result.resize(2);
+      result[1] = static_cast<char>(0x80 | (0x3f & cp));
+      result[0] = static_cast<char>(0xC0 | (0x1f & (cp >> 6)));
+   } 
+   else if (cp <= 0xFFFF) 
+   {
+      result.resize(3);
+      result[2] = static_cast<char>(0x80 | (0x3f & cp));
+      result[1] = 0x80 | static_cast<char>((0x3f & (cp >> 6)));
+      result[0] = 0xE0 | static_cast<char>((0xf & (cp >> 12)));
+   }
+   else if (cp <= 0x10FFFF) 
+   {
+      result.resize(4);
+      result[3] = static_cast<char>(0x80 | (0x3f & cp));
+      result[2] = static_cast<char>(0x80 | (0x3f & (cp >> 6)));
+      result[1] = static_cast<char>(0x80 | (0x3f & (cp >> 12)));
+      result[0] = static_cast<char>(0xF0 | (0x7 & (cp >> 18)));
+   }
+
+   return result;
+}
+
+
+/// Returns true if ch is a control character (in range [0,32[).
+static inline bool 
+isControlCharacter(char ch)
+{
+   return ch > 0 && ch <= 0x1F;
+}
+
+
+enum { 
+   /// Constant that specify the size of the buffer that must be passed to uintToString.
+   uintToStringBufferSize = 3*sizeof(UInt)+1 
+};
+
+// Defines a char buffer for use with uintToString().
+typedef char UIntToStringBuffer[uintToStringBufferSize];
+
+
+/** Converts an unsigned integer to string.
+ * @param value Unsigned interger to convert to string
+ * @param current Input/Output string buffer. 
+ *        Must have at least uintToStringBufferSize chars free.
+ */
+static inline void 
+uintToString( UInt value, 
+              char *&current )
+{
+   *--current = 0;
+   do
+   {
+      *--current = char(value % 10) + '0';
+      value /= 10;
+   }
+   while ( value != 0 );
+}
+
+} // namespace Json {
+
+#endif // LIB_JSONCPP_JSON_TOOL_H_INCLUDED
diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp
index 60362ad..b257b45 100644
--- a/src/lib_json/json_value.cpp
+++ b/src/lib_json/json_value.cpp
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 #include <iostream>
 #include <json/value.h>
 #include <json/writer.h>
diff --git a/src/lib_json/json_valueiterator.inl b/src/lib_json/json_valueiterator.inl
index 736e260..bd7c8d2 100644
--- a/src/lib_json/json_valueiterator.inl
+++ b/src/lib_json/json_valueiterator.inl
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 // included by json_value.cpp
 // everything is within Json namespace
 
diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp
index 92782db..7882acf 100644
--- a/src/lib_json/json_writer.cpp
+++ b/src/lib_json/json_writer.cpp
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 #include <json/writer.h>
 #include "json_tool.h"
 #include <utility>
diff --git a/src/test_lib_json/jsontest.cpp b/src/test_lib_json/jsontest.cpp
index a07d0fe..02e7b21 100644
--- a/src/test_lib_json/jsontest.cpp
+++ b/src/test_lib_json/jsontest.cpp
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 #define _CRT_SECURE_NO_WARNINGS 1 // Prevents deprecation warning with MSVC
 #include "jsontest.h"
 #include <stdio.h>
diff --git a/src/test_lib_json/jsontest.h b/src/test_lib_json/jsontest.h
index 8f0bd31..75c7f78 100644
--- a/src/test_lib_json/jsontest.h
+++ b/src/test_lib_json/jsontest.h
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 #ifndef JSONTEST_H_INCLUDED
 # define JSONTEST_H_INCLUDED
 
diff --git a/src/test_lib_json/main.cpp b/src/test_lib_json/main.cpp
index b80776d..3e5b53d 100644
--- a/src/test_lib_json/main.cpp
+++ b/src/test_lib_json/main.cpp
@@ -1,3 +1,8 @@
+// Copyright 2007-2010 Baptiste Lepilleur
+// Distributed under MIT license, or public domain if desired and
+// recognized in your jurisdiction.
+// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
+
 #include <json/json.h>
 #include "jsontest.h"