Just before building json remote api