finished convert json methods